import request from '@/utils/request'

// 查询综合推荐分类列表
export function listRecommendtype(query) {
  return request({
    url: '/baseplatform/recommendtype/list',
    method: 'get',
    params: query
  })
}

// 查询综合推荐分类详细
export function getRecommendtype(id) {
  return request({
    url: '/baseplatform/recommendtype/' + id,
    method: 'get'
  })
}

// 新增综合推荐分类
export function addRecommendtype(data) {
  return request({
    url: '/baseplatform/recommendtype',
    method: 'post',
    data: data
  })
}

// 修改综合推荐分类
export function updateRecommendtype(data) {
  return request({
    url: '/baseplatform/recommendtype',
    method: 'put',
    data: data
  })
}

// 删除综合推荐分类
export function delRecommendtype(id) {
  return request({
    url: '/baseplatform/recommendtype/' + id,
    method: 'delete'
  })
}
